﻿using System.Collections.Immutable;

namespace Turnable.Characters;

public record Team(string Name, IImmutableList<Character> Members)
{
    public Team(string Name) : this(Name, ImmutableList<Character>.Empty)
    {
    }

    public Team AddMember(Character character) => this with { Members = Members.Add(character) };
}
